package com.arcbbs.mapper;

import com.arcbbs.entity.FormBoard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FormBoardMapper {
    @Select("select * from forum_board ORDER BY sort ASC;")
    List<FormBoard> selectall();
@Select("select * from forum_board where board_id = #{pBoardId}")
    FormBoard selectbyid(Integer pBoardId);
}
